<?php

	class cmd_goods extends mdl_goods
	{
		function getFieldById($goodsId, $aField=array('*'))
		{
			//若传递了$aField参数,增加isshopperview字段
			if ($aField!=array('*'))
			{
				$aField[] = 'isshopperview';
			}

			return $this->db->selectrow("SELECT ".implode(",", $aField)." FROM sdb_goods WHERE goods_id='{$goodsId}'");
		}
	}

?>